//
//  CZQCoachDetailModel.m
//  coachmanage
//
//  Created by 众拳科技 on 2018/3/29.
//  Copyright © 2018年 众拳科技. All rights reserved.
//

#import "CZQCoachDetailModel.h"

#define VenueFilePath [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject] stringByAppendingPathComponent:[NSString stringWithFormat:@"%@coachDetai.data",[[NSUserDefaults standardUserDefaults]objectForKey:@"UserID"]]]

@implementation CZQCoachDetailModel

MJCodingImplementation




+ (void)saveModel:(CZQCoachDetailModel *)model
{
    // 归档
    [NSKeyedArchiver archiveRootObject:model toFile:VenueFilePath];
}

+(CZQCoachDetailModel *)model
{
    // 读取帐号
    CZQCoachDetailModel *model = [NSKeyedUnarchiver unarchiveObjectWithFile:VenueFilePath];
    
    if (!model) {
        
        model = [[CZQCoachDetailModel alloc] init];
    }
    
    return model;
}

@end

#pragma mark - 课程计划item
@implementation CZQGetCoursePlanItemModel

@end

#pragma mark - 可约场馆
@implementation CZQGetShopPlaceModel

@end

#pragma mark - 课程计划
@implementation CZQGetCoursePlanModel

@end
